<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ include file="../include/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
  	<title>添加菜单</title>
  	<%@ include file="../include/jsCss.jsp" %>
     <script>
     	 function saveUpdate() {
     	 	var menuName = $("#menuName").val();
     	 	if (menuName == "") {
     	 		alert("菜单名称不能为空!");
     	 		return false;
     	 	}
     	 	return true;
     	 }
     </script>
  </head>
  
  <body>
  	<form action="menu!menuSaveOrUpdate.html" onsubmit="return saveUpdate();" method="post">
     <table border="1">
     	<tr>
     		<td colspan="2"> 
     			添加菜单信息 
     		</td>
     	</tr>
     	<tr>
     		<td>菜单名称：</td>
     		<td><input type="text" name="menuName" id="menuName"/> </td>
     	</tr>
     	<tr>
			<td>排序号：</td>
			<td><input type="text" name="menuOrder" /> </td>
     	</tr>
     	<tr>
			<td>上级菜单：</td>
			<td>
				<select name="parentId"> 
						<option value="0"></option>
					<s:iterator value="menuList" var="item">  
						<option value="${menuId }">${menuName }</option> 
					</s:iterator>
				</select> 
			 </td>
     	</tr> 
     	<tr>
			<td>菜单URL：</td>
			<td><input type="text" name="menuUrl" /> </td>
     	</tr> 
     	<tr>
			<td>状态：</td>
			<td>
				<select name="status">
					<option value="0">有效</option>
					<option value="1">无效</option>
				</select>
			</td>
     	</tr>
      
     	<tr>
     		<td colspan="2">
     		  <input type="submit" value="提交" /> 
     		  &nbsp;&nbsp;
     		  <input type="reset" value="重置" />
     	    </td>
     	</tr>
     </table>
     </form>
  </body>
</html>
